import request from '@/utils/request'

// 查询订单护士对应列表
export function listOrdernurse(query) {
  return request({
    url: '/service/ordernurse/list',
    method: 'get',
    params: query
  })
}

// 查询订单护士对应详细
export function getOrdernurse(ordernurseId) {
  return request({
    url: '/service/ordernurse/' + ordernurseId,
    method: 'get'
  })
}

// 新增订单护士对应
export function addOrdernurse(data) {
  return request({
    url: '/service/ordernurse',
    method: 'post',
    data: data
  })
}

// 修改订单护士对应
export function updateOrdernurse(data) {
  return request({
    url: '/service/ordernurse',
    method: 'put',
    data: data
  })
}

// 删除订单护士对应
export function delOrdernurse(ordernurseId) {
  return request({
    url: '/service/ordernurse/' + ordernurseId,
    method: 'delete'
  })
}
